package com.qhg.saas_server.mapper;


import com.qhg.saas_server.pojo.dto.VisitLogDto;
import com.qhg.saas_server.pojo.dto.VisitStatisticsDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface VisitLogMapper {
    /**
     * 拜访结果条件查询
     * @param visitLogDto
     * @return
     */
    List<VisitLogDto> getVisitLogByCondition(VisitLogDto visitLogDto);

    /**
     * 根据visitLogIdList查询List<VisitLogDto>
     * @param visitLogIdList
     * @return
     */
    List<VisitLogDto> selectVisitLogDtoListByVisitLogIdList(@Param("list") List<Integer> visitLogIdList);

    /**
     * 根据条件查询VisitStatisticsDto并且封装为一个list
     * @param visitStatisticsDto
     * @return
     */
    List<VisitStatisticsDto> getVisitLogPlusByCondition(VisitStatisticsDto visitStatisticsDto);

    Integer getEffectiveTimes(@Param("storeId") Integer storeId, @Param("visitStatisticsDto") VisitStatisticsDto visitStatisticsDto);
}
